package com.wf.it.hpdept.dao;

import com.wf.it.common.entity.Dept;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface DeptDao extends JpaRepository<Dept,Integer>, JpaSpecificationExecutor<Dept> {
    List<Dept> findByNameIn(String[] names);
    Dept findByName(String name);
}
